package com.zhuoyue.biz.core.api.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhuoyue.biz.core.api.domain.base.BaseDoClass;

import java.io.Serializable;

import lombok.*;

/**
 * @author wjming
 * @ClassName: LocalSceneZigbeeDeviceRelation
 * @Description: 场景与zigbee设备之间的关系对象
 * @Date 2021-07-08 13:26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`tbl_local_scene_zigbee_device_relation`")
public class LocalSceneZigbeeDeviceRelation extends BaseDoClass implements Serializable {
    /**
     * 场景ID
     */
    @TableField(value = "`scene_id`")
    private String sceneId;

    /**
     * 设备ID
     */
    @TableField(value = "`device_id`")
    private String deviceId;

    /**
     * 子执行设备信息
     */
    @TableField(value = "`child_execute_devices`")
    private String childExecuteDevices;

    /**
     * 设备类型
     */
    @TableField(value = "`device_type`")
    private String deviceType;

    /**
     * 意图
     */
    @TableField(value = "`purpose`")
    private String purpose;

    /**
     * 状态:开,关
     */
    @TableField(value = "`state_des`")
    private String stateDes;

    @TableField(value = "`identify`")
    private String identify;

    /**
     * 排序字段
     */
    @TableField(value = "`sort`")
    private int sort;

    /**
     * 命令
     */
    @TableField(value = "`cmd`")
    private String cmd;

    /**
     * 开关状态
     */
    @TableField(value = "`state`")
    private String state;

    /**
     * 自定义信息
     */
    @TableField(value = "`control_param`")
    private String controlParam;

    /**
     * 延时时间分
     */
    @TableField(value = "`deley_time_minute`")
    private String deleyTimeMinute;

    /**
     * 延时时间秒
     */
    @TableField(value = "`deley_time_second`")
    private String deleyTimeSecond;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_SCENE_ID = "scene_id";

    public static final String COL_DEVICE_ID = "device_id";

    public static final String COL_CHILD_EXECUTE_DEVICES = "child_execute_devices";

    public static final String COL_DEVICE_TYPE = "device_type";

    public static final String COL_PURPOSE = "purpose";

    public static final String COL_STATE_DES = "state_des";

    public static final String COL_IDENTIFY = "identify";

    public static final String COL_CMD = "cmd";
    public static final String COL_SORT = "sort";

    public static final String COL_STATE = "state";

    public static final String COL_CONTROL_PARAM = "control_param";

    public static final String COL_DELEY_TIME_MINUTE = "deley_time_minute";

    public static final String COL_DELEY_TIME_SECOND = "deley_time_second";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}